package com.example.accessingdatajpa.service;

import com.example.accessingdatajpa.pojo.Category;
import com.example.accessingdatajpa.response.RestResponse;

import javax.transaction.Transactional;
import java.util.List;

public interface ICategoryService {
    //find all categories
    @Transactional
    RestResponse<List<Category>> queryAllCategory();

    //add new category
    @Transactional
    RestResponse<String> addOneCategory(Category category);
}
